    //
//  SecondViewController.m
//  MySimpleApp
//
//  Created by student on 12/21/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

//  SecondViewController.m

#import "SecondViewController.h"

@implementation SecondViewController
@synthesize myImageView;

- (void)viewDidLoad {
	NSArray *hopAnimation;
	hopAnimation=[[NSArray alloc] initWithObjects:
                  [UIImage imageNamed:@"frame-1.png"],
                  [UIImage imageNamed:@"frame-2.png"],
                  [UIImage imageNamed:@"frame-3.png"],
                  [UIImage imageNamed:@"frame-4.png"],
                  [UIImage imageNamed:@"frame-5.png"],
                  [UIImage imageNamed:@"frame-6.png"],
                  [UIImage imageNamed:@"frame-7.png"],
                  [UIImage imageNamed:@"frame-8.png"],
                  [UIImage imageNamed:@"frame-9.png"],
                  [UIImage imageNamed:@"frame-10.png"],
                  [UIImage imageNamed:@"frame-11.png"],
                  [UIImage imageNamed:@"frame-12.png"],
                  [UIImage imageNamed:@"frame-13.png"],
                  [UIImage imageNamed:@"frame-14.png"],
                  [UIImage imageNamed:@"frame-15.png"],
                  [UIImage imageNamed:@"frame-16.png"],
                  [UIImage imageNamed:@"frame-17.png"],
                  [UIImage imageNamed:@"frame-18.png"],
                  [UIImage imageNamed:@"frame-19.png"],
                  [UIImage imageNamed:@"frame-20.png"],
                  nil
				  ];
	myImageView.animationImages=hopAnimation;
	myImageView.animationDuration=1;
	myImageView.startAnimating;
	[hopAnimation release];
	
    [super viewDidLoad];
}

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
	[myImageView release];
    [super dealloc];
}

@end